package finassist.util;

	import java.util.Date;
	import java.text.DateFormat;
	import java.text.SimpleDateFormat;
	import java.util.Calendar;
	 
	 
	public class Utilities {
	  public String currentDateTime() {
	 
		   DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		   //get current date time with Date()
		   Date date = new Date();
		   System.out.println(dateFormat.format(date));
	 
		   //get current date time with Calendar()
		   Calendar cal = Calendar.getInstance();
		   String dateString = dateFormat.format(cal.getTime()).toString();
		return dateString;
	  }
	}
